<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<p:panel id="pnlCrearCompania">
		<table>
			<tr>
				<td width="40%">
					<h:outputLabel for="txtNombre" value="#{i18n['erp.compania.nombre']}" />
				</td>
				<td width="60%">
					<h:inputText id="txtNombre" 
						value="#{companiaDataManager.companiaInstancia.nombreCompania}" 
						required="true" label="#{i18n['erp.compania.nombre']}"/>
				</td>
			</tr>
			<tr>
				<td>
					<h:outputLabel for="txtDesc" value="#{i18n['erp.compania.descripcion']}" />
				</td>
				<td>
					<h:inputText id="txtDesc" value="#{companiaDataManager.companiaInstancia.descCompania}" />
				</td>
			</tr>
		</table>
	</p:panel>
	<p:panelGrid id="botonesCrear" columns="3">
		<p:commandButton id="btnGuardar" value="#{i18n['label.guardar']}"
			update="pnlCrearCompania,:formCompania:pnlMessages"
			actionListener="#{companiaController.registrarCompania}" />
		<p:commandButton value="#{i18n['label.cancelar']}" type="reset" immediate="true"/>
	</p:panelGrid>
</ui:composition>